<template>
  <div class="back">
    <div class="top">
      <div class="fanhui" @click="toback">
        <div class="backimg1">
          <img :src="SMDataURL+'/images/allback-1.png'"></img>
        </div>
        <p>{{version}}返回</p>
      </div>
      <div class="title">{{mssg}}</div>
      <div class="backimg" @click="tosye">
         <img :src="SMDataURL+'/images/tghome_1.png'"></img>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props:['mssg'],
  name: "backzj",
  data() {
    return{
      DataURL: "https://e.amjhome.com/baojiayou/tts_upload",
      SMDataURL: "https://bjy.51yunkeyi.com/baojiayou/tts_upload",
      
    }
  },
  methods: {
    toback(){
      history.back()
    },
    tosye(){
      this.$router.push('/')
    }
  },
};
</script>

<style scoped>
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f2f2f2;
  width: 100%;
  height: 40px;
  box-sizing: border-box;
  padding: 0 10px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
}
.fanhui{
  display: flex;
  align-items: center;
}
.yinc{
  visibility: hidden;
}
.backimg1{
  width: 20px;
  height: 20px;
  margin-right: 6px;
}
.backimg1 img{
  max-height: 100%;
  max-width: 100%;
}
.backimg{
  width: 28px;
  height: 28px;
}
.backimg img{
  max-height: 100%;
  max-width: 100%;
}
.title{
  width: 50%;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
</style>
